package org.jaaksi.demo.ptr.ui.recycler;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import org.jaaksi.demo.ptr.R;
import org.jaaksi.demo.ptr.adapter.BaseSimpleAdapter;
import org.jaaksi.demo.ptr.bean.house.HouseListBean;

/**
 * Created by Fcy on 2016/3/18.<br/>
 */
public class HouseAdapter extends BaseQuickAdapter<HouseListBean, BaseViewHolder> {

  public HouseAdapter() {
    super(R.layout.item_house);
  }

  @Override protected void convert(BaseViewHolder helper, HouseListBean item) {
    helper.setText(R.id.tv_res_name, item.title);
    helper.setText(R.id.tv_res_area, item.min_frame_area + "㎡");
    helper.setText(R.id.tv_res_price, item.avg_unit_price + "元/㎡");
  }
}
